# 2. 注册页面的select下拉练习
import os
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
driver = webdriver.Chrome()
fileA = "file:///"+os.path.abspath("html")+"/注册A.html"
driver.get(fileA)
time.sleep(3)
sl = driver.find_element(By.ID, "selectA")
select = Select(sl)
time.sleep(3)
select.select_by_index(3)

time.sleep(3)
driver.quit()

